package com.macro.mall.portal.service;

import com.macro.mall.model.SmsMessageHistory;
import com.macro.mall.portal.domain.SmsMessageHistoryQueryParam;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 短信管理Service
 *
 * @author 郎
 */
public interface SmsMessageHistoryService {
    /**
     * 创建商品
     */
    @Transactional(isolation = Isolation.DEFAULT, propagation = Propagation.REQUIRED)
    Boolean save(SmsMessageHistory entity);

    /**
     * 根据短信编号获取更新信息
     */
    SmsMessageHistory getMessageHistoryInfo(Long id);

    /**
     * 分页查询商品
     */
    List<SmsMessageHistory> list(SmsMessageHistoryQueryParam queryParam, Integer pageSize, Integer pageNum);
}
